# Contributor: David Demelier <markand@malikania.fr>
# Maintainer: David Demelier <markand@malikania.fr>
pkgname=libretro-beetle-lynx
pkgver=0_git20220327
pkgrel=0
_commit="de0d520d679cb92767876d4e98da908b1ea6a2d6"
pkgdesc="standalone port of Mednafen Lynx to libretro"
url="https://github.com/libretro/beetle-lynx-libretro"
arch="all"
license="GPL-2.0-only AND Zlib"
source="$pkgname-$_commit.tar.gz::https://github.com/libretro/beetle-lynx-libretro/archive/$_commit.tar.gz"
builddir="$srcdir/beetle-lynx-libretro-$_commit"
options="!check" # No tests

build() {
	make
}

package() {
	install -Dm644 mednafen_lynx_libretro.so "$pkgdir"/usr/lib/libretro/mednafen_lynx_libretro.so
}

sha512sums="
de10e00f7919107961bc07d599f55028d9dcdca2bafa4a2ba9d8a11a7d9a0a3ebbe706ec363491785383e32271a5c8700f48e4b998f42ed2a3b503be1c9aad93  libretro-beetle-lynx-de0d520d679cb92767876d4e98da908b1ea6a2d6.tar.gz
"
